<template>
  <el-link type="primary" @click="redirect" v-if="isShow">
    点击跳转
  </el-link>
</template>

<script>
export default {
  props: ["data"],
  data() {
      return {
        isShow: false
      };
  },

  methods: {
    //跳转至记账页面
    redirect() {
      const id = this.data.id;
      let url = "#/blank/finance__account__forpayapply?payApplyIds=" + id;
      window.open(url);
    }
  },

  mounted() {
    let isBelongFinanceDept = this.data.isBelongFinanceDept;
    if (isBelongFinanceDept === 1) {
      this.isShow = true;
    }
  }
};
</script>


<style>

</style>
